"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Base;

var _design = require("@discuzq/design");

var _react = _interopRequireDefault(require("react"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function title() {
  var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '导航';
  return /*#__PURE__*/_react.default.createElement("span", null, name);
}

function onClick(index, subMenuIndex, list) {
  console.log("\u70B9\u51FB\u4E86\u5B50\u83DC\u5355".concat(index, "\uFF0C\u7236\u7EA7\u83DC\u5355").concat(subMenuIndex), list);
}

function Base() {
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      display: 'flex'
    }
  }, /*#__PURE__*/_react.default.createElement(_design.Card, {
    style: {
      width: '330px',
      height: '500px',
      overflow: 'scroll'
    },
    bordered: true,
    fullBody: true,
    header: "\u6A2A\u5411\u6A21\u5F0F"
  }, /*#__PURE__*/_react.default.createElement(_design.Menu, {
    multiple: true
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "3"
  }, title('全部')), /*#__PURE__*/_react.default.createElement(_design.Menu.SubMenu, {
    index: "1",
    title: title('官方动态')
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "1-1"
  }, "\u9009\u98791"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "1-2"
  }, "\u9009\u98792"), /*#__PURE__*/_react.default.createElement(_design.Menu.ItemGroup, {
    title: title('分组')
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "1-3"
  }, "\u9009\u98793"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "1-4"
  }, "\u9009\u98794"))), /*#__PURE__*/_react.default.createElement(_design.Menu.SubMenu, {
    index: "2",
    title: title('使用交流')
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "2-1"
  }, "\u9009\u98791"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "2-2"
  }, "\u9009\u98792"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "2-3",
    disabled: true
  }, "\u9009\u98793")))), /*#__PURE__*/_react.default.createElement(_design.Card, {
    style: {
      width: '330px',
      height: '500px',
      display: 'flex',
      flexDirection: 'column'
    },
    fullBody: true,
    bordered: true,
    header: "\u7EB5\u5411\u6A21\u5F0F",
    bodyStyle: {
      flex: 1,
      overflow: 'scroll'
    }
  }, /*#__PURE__*/_react.default.createElement(_design.Menu, {
    mode: "horizontal",
    menuTrigger: "hover",
    multiple: true,
    style: {
      display: 'flex'
    }
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "3",
    onClick: onClick
  }, "\u5168\u90E8"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "4"
  }, "\u70ED\u95E8"), /*#__PURE__*/_react.default.createElement(_design.Menu.SubMenu, {
    index: "1",
    title: title('类型')
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    divided: true,
    index: "1-1"
  }, "\u9009\u98791"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "1-2"
  }, "\u9009\u98792")), /*#__PURE__*/_react.default.createElement(_design.Menu.SubMenu, {
    index: "2",
    title: title('排序')
  }, /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    divided: true,
    index: "2-1"
  }, "\u9009\u98791"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    divided: true,
    index: "2-2"
  }, "\u9009\u98792"), /*#__PURE__*/_react.default.createElement(_design.Menu.Item, {
    index: "2-3"
  }, "\u9009\u98793")))));
}